$(document).ready(function () {
    var weekdayArr=['平板车','高栏车','厢式车','高低板'];
        var timeArr = ['4.2米','5.2米','6.2米','6.8米','7.2米','8.6米','9.6米','12.5米','13米','13.5米','14.5米','16.5米','17.5米'];
        var mobileSelect2 = new MobileSelect({

            trigger: '#trigger2',
            title: '',
            wheels: [
                        {data: weekdayArr},
                        {data: timeArr}
                    ],
            position:[1, 0],
            transitionEnd:function(indexArr, data){
                console.log(data);
            },
            callback:function(indexArr, data){
                console.log(data);
            }
        });
        $('input').lc_switch();
        // triggered each time a field changes status
        $('body').delegate('.lcs_check', 'lcs-statuschange', function() {
            var status = ($(this).is(':checked')) ? 'checked' : 'unchecked';
            console.log('field changed status: '+ status );
        });

        // triggered each time a field is checked
        $('body').delegate('.lcs_check', 'lcs-on', function() {
            console.log('field is checked');
        });
        
        
        // triggered each time a is unchecked
        $('body').delegate('.lcs_check', 'lcs-off', function() {
            console.log('field is unchecked');
        });
})


